home *** CD-ROM | disk | FTP | other *** search
/ Mac Mania 5 / MacMania 5.toast / / Internet software / MacWebCam 2.4 / SampleScripts / Anarchie sample next >
Text File  |  1996-08-06  |  734b  |  20 lines

  1. -- A post-process script to FTP the last image to a remote location.  
  2. -- This script uses a two step process to minimize the time that a image is unavailable to the http server.
  3. -- Any attept to FTP an image from the Mac to a remote http server could result in errors due to read/write contention.  
  4. -- Use at your own risk!
  5.  
  6. -- To use:
  7. -- Change the variables below, and add passwords, if needed.
  8.  
  9. tell application "Anarchie"
  10.     
  11.     set ftptempfile to "/yourpath/temp.jpg"
  12.     set ftpdestfile to "/yourpath/current.jpg"
  13.     set yourFTPHost to "ftp.yourhost.com"
  14.     set yourLocalImage to "RAM Disk:Image.jpg"
  15.     
  16.     store file yourLocalImage host yourFTPHost path ftptempfile
  17.     rename host yourFTPHost path ftptempfile newname ftpdestfile
  18.     
  19. end tell
  20.